package com.jinbo.sxzq;

import android.util.Log;

/***********棋子鸡********************/
public class Chess_Ji extends Chess{
    Chess_Ji(int type, int index, int[] location, int owner, GameControl gameControl) {
        /********初始化信息****************/
        super(index, location, owner, gameControl);
        this.type = type;
        this.name = ProjectConstants.ChessName.JI;
        this.message = ProjectConstants.ChessMasage.JI;
        this.type = ProjectConstants.ChessType.JI;
        this.hp = 2;
        this.maxHp = 2;
        this.mp = 0;
        this.maxMp = 1;
        this.mobility = 1;
        this.maxmobility = 1;
        this.atk = 1;
    }

    public void Action(){
        super.Action();
    }

    public void Move(Chess chess){
        super.Move(chess);
    }

    public void Attack(Chess chess){
        super.Attack(chess);
    }

    public void RoundNext(){
        super.RoundNext();
    }

    //重写技能鸡：【猛禽】生命值大于最大生命行动力+1，小于最大生命攻击力+1。
    public void Skill(){
        super.Skill();
        Log.e("Skill——鸡" , "触发技能");
        if(hp >= maxHp){
            mobility++;
            maxmobility++;
        }else{
            atk++;
        }
    }

    public void Kill(Chess chess){
        super.Kill(chess);
    }
}
